﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BookBuy
{
    public partial class ThanhToan_NXB : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                nxbTDTT.PublisherServices proxy = new nxbTDTT.PublisherServices();
                string sID = Session["sID_NXB_TDTT"].ToString();
                decimal gia = proxy.ThanhToan(sID);
                System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGUAGE='JavaScript'>alert('Thanh Toán Xong !!!')</SCRIPT>");
                lbMessage.Text = "Tổng giá trị hóa đơn: " + gia + " vnđ";
            }            
        }

    }
}